package model;

import model.entity.Item;
import model.enums.ModifyType;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author WeiJin
 * @Version 1.0
 * @Date 2025/3/27 15:28
 */
public class DifferOrder {
    /**
     * 订单号
     */
    private String orderId;
    private List<Item> oldItems;
    private List<Item> newItems;
    private double oldPrice;
    private double newPrice;
    private ModifyType modifyType;

    public DifferOrder(String orderId, List<Item> oldItems, double oldPrice, ModifyType modifyType) {
        this.orderId = orderId;
        this.oldItems = oldItems;
        this.oldPrice = oldPrice;
        this.modifyType = modifyType;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public List<Item> getOldItems() {
        return oldItems;
    }

    public void setOldItems(List<Item> oldItems) {
        this.oldItems = oldItems;
    }

    public List<Item> getNewItems() {
        return newItems;
    }

    public void setNewItems(List<Item> newItems) {
        this.newItems = newItems;
    }

    public double getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(double oldPrice) {
        this.oldPrice = oldPrice;
    }

    public double getNewPrice() {
        return newPrice;
    }

    public void setNewPrice(double newPrice) {
        this.newPrice = newPrice;
    }

    public ModifyType getModifyType() {
        return modifyType;
    }

    public void setModifyType(ModifyType modifyType) {
        this.modifyType = modifyType;
    }

    @Override
    public String toString() {
        return "DifferOrder{" +
                "orderId='" + orderId + '\'' +
                ", oldItems=" + oldItems +
                ", newItems=" + newItems +
                ", oldPrice=" + oldPrice +
                ", newPrice=" + newPrice +
                ", modifyType=" + modifyType +
                '}';
    }
}
